import request from '@/utils/request'


export function getList(page, size, name, account) {
  return request({
    url: '/merchant/list',
    method: 'get',
    params: {page, size, name, account}
  })
}

export function allList() {
  return request({
    url: '/merchant/allList',
    method: 'get',
  })
}

export function deleteMerchant(data) {
  return request({
    url: '/merchant/delete',
    method: 'post',
    data
  })
}

export function findById(id) {
  return request({
    url: '/merchant/findById',
    method: 'get',
    params: {id}
  })
}

export function AddOrEdit(data) {
  return request({
    url: '/merchant/createOrEdit',
    method: 'post',
    data
  })
}

export function editPassword(data) {
  return request({
    url: '/companyInfo/editPassword',
    method: 'post',
    data
  })
}
